package cn.com.hd.mall.web.webservices.entity.response.shoppingcart;

import java.io.Serializable;
import java.util.List;

import cn.com.hd.mall.web.webservices.entity.BaseResponse;
import cn.com.hd.mall.web.webservices.entity.request.shoppingcart.LimitRuleListBean;

@SuppressWarnings("serial")
public class ToShoppingcartResponse extends BaseResponse {
    private String merchTypeCount;
    private List<SellerListBean> sellerList;

    public String getMerchTypeCount() {
        return merchTypeCount;
    }

    public void setMerchTypeCount(String merchTypeCount) {
        this.merchTypeCount = merchTypeCount;
    }

    public List<SellerListBean> getSellerList() {
        return sellerList;
    }

    public void setSellerList(List<SellerListBean> sellerList) {
        this.sellerList = sellerList;
    }

    public static class SellerListBean implements Serializable {
        private String sellerId;
        private String sellerName;
        private String isYijipayAccount;
        private String paymentFlag;
        private String codFlag;
        private String supportCod;
        private String supportVatInvoice;
        private String minDeliveryAmt;
        private List<MerchListBean> merchList;

        /**
         * 增补字段，用来想订单确认界面传递汇总后的优惠信息
         */
        private WrapPromotionBean promotionBean;

        public String getSellerId() {
            return sellerId;
        }

        public void setSellerId(String sellerId) {
            this.sellerId = sellerId;
        }

        public String getSellerName() {
            return sellerName;
        }

        public void setSellerName(String sellerName) {
            this.sellerName = sellerName;
        }

        public String getIsYijipayAccount() {
            return isYijipayAccount;
        }

        public void setIsYijipayAccount(String isYijipayAccount) {
            this.isYijipayAccount = isYijipayAccount;
        }

        public String getPaymentFlag() {
            return null == paymentFlag ? "0" : paymentFlag;
        }

        public void setPaymentFlag(String paymentFlag) {
            this.paymentFlag = paymentFlag;
        }

        public String getCodFlag() {
            return codFlag;
        }

        public void setCodFlag(String codFlag) {
            this.codFlag = codFlag;
        }

        public String getSupportCod() {
            return supportCod;
        }

        public void setSupportCod(String supportCod) {
            this.supportCod = supportCod;
        }

        public String getSupportVatInvoice() {
            return supportVatInvoice;
        }

        public void setSupportVatInvoice(String supportVatInvoice) {
            this.supportVatInvoice = supportVatInvoice;
        }

        public String getMinDeliveryAmt() {
            return minDeliveryAmt;
        }

        public void setMinDeliveryAmt(String minDeliveryAmt) {
            this.minDeliveryAmt = minDeliveryAmt;
        }

        public List<MerchListBean> getMerchList() {
            return merchList;
        }

        public void setMerchList(List<MerchListBean> merchList) {
            this.merchList = merchList;
        }

        public WrapPromotionBean getPromotionBean() {
            return promotionBean;
        }

        public void setPromotionBean(WrapPromotionBean promotionBean) {
            this.promotionBean = promotionBean;
        }

        public static class MerchListBean implements Serializable {
            private String id;
            private String merchId;
            private String merchName;
            private String merchBarCode;
            private String merchQuantity;
            private String picUrl;
            private String specName;
            private String priceRetail;
            private String priceDanlu;
            private String unitPrice;
            private String merchStatus;
            @Deprecated
            private String returnFlag;
            private String onHandInventory;
            @Deprecated
            private String miniStartSaleQuantityChanged;
            private String sellerId;
            private String sellerName;
            private List<PromotionModelListBean> promotionModelList;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getMerchId() {
                return merchId;
            }

            public void setMerchId(String merchId) {
                this.merchId = merchId;
            }

            public String getMerchName() {
                return merchName;
            }

            public void setMerchName(String merchName) {
                this.merchName = merchName;
            }

            public String getMerchBarCode() {
                return merchBarCode;
            }

            public void setMerchBarCode(String merchBarCode) {
                this.merchBarCode = merchBarCode;
            }

            public String getMerchQuantity() {
                return merchQuantity;
            }

            public void setMerchQuantity(String merchQuantity) {
                this.merchQuantity = merchQuantity;
            }

            public String getPicUrl() {
                return picUrl;
            }

            public void setPicUrl(String picUrl) {
                this.picUrl = picUrl;
            }

            public String getSpecName() {
                return specName;
            }

            public void setSpecName(String specName) {
                this.specName = specName;
            }

            public String getPriceRetail() {
                return priceRetail;
            }

            public void setPriceRetail(String priceRetail) {
                this.priceRetail = priceRetail;
            }

            public String getPriceDanlu() {
                return priceDanlu;
            }

            public void setPriceDanlu(String priceDanlu) {
                this.priceDanlu = priceDanlu;
            }

            public String getUnitPrice() {
                return unitPrice;
            }

            public void setUnitPrice(String unitPrice) {
                this.unitPrice = unitPrice;
            }

            public String getMerchStatus() {
                return merchStatus;
            }

            public void setMerchStatus(String merchStatus) {
                this.merchStatus = merchStatus;
            }

            public String getReturnFlag() {
                return returnFlag;
            }

            public void setReturnFlag(String returnFlag) {
                this.returnFlag = returnFlag;
            }

            public String getOnHandInventory() {
                return onHandInventory;
            }

            public void setOnHandInventory(String onHandInventory) {
                this.onHandInventory = onHandInventory;
            }

            public String getMiniStartSaleQuantityChanged() {
                return miniStartSaleQuantityChanged;
            }

            public void setMiniStartSaleQuantityChanged(String miniStartSaleQuantityChanged) {
                this.miniStartSaleQuantityChanged = miniStartSaleQuantityChanged;
            }

            public String getSellerId() {
                return sellerId;
            }

            public void setSellerId(String sellerId) {
                this.sellerId = sellerId;
            }

            public String getSellerName() {
                return sellerName;
            }

            public void setSellerName(String sellerName) {
                this.sellerName = sellerName;
            }

            public List<PromotionModelListBean> getPromotionModelList() {
                return promotionModelList;
            }

            public void setPromotionModelList(List<PromotionModelListBean> promotionModelList) {
                this.promotionModelList = promotionModelList;
            }

            public static class PromotionModelListBean implements Serializable {
                private String promotionId;
                private String promotionType;
                private String reductionType;
                private String promotionInfo;
                private String ruleId;
                @Deprecated
                private String isDefaultPromotion;
                @Deprecated
                private String isPromotion;
                @Deprecated
                private String promotionFlag;
                private String diffPrice;
                @Deprecated
                private String presentationDetail;
                // 限购需求 追加字段
                private List<LimitRuleListBean> limitRuleList;

                public String getPromotionId() {
                    return promotionId;
                }

                public void setPromotionId(String promotionId) {
                    this.promotionId = promotionId;
                }

                public String getPromotionType() {
                    return promotionType;
                }

                public void setPromotionType(String promotionType) {
                    this.promotionType = promotionType;
                }

                public String getReductionType() {
                    return reductionType;
                }

                public void setReductionType(String reductionType) {
                    this.reductionType = reductionType;
                }

                public String getPromotionInfo() {
                    return promotionInfo;
                }

                public void setPromotionInfo(String promotionInfo) {
                    this.promotionInfo = promotionInfo;
                }

                public String getRuleId() {
                    return ruleId;
                }

                public void setRuleId(String ruleId) {
                    this.ruleId = ruleId;
                }

                public String getIsDefaultPromotion() {
                    return isDefaultPromotion;
                }

                public void setIsDefaultPromotion(String isDefaultPromotion) {
                    this.isDefaultPromotion = isDefaultPromotion;
                }

                public String getIsPromotion() {
                    return isPromotion;
                }

                public void setIsPromotion(String isPromotion) {
                    this.isPromotion = isPromotion;
                }

                public String getPromotionFlag() {
                    return promotionFlag;
                }

                public void setPromotionFlag(String promotionFlag) {
                    this.promotionFlag = promotionFlag;
                }

                public String getDiffPrice() {
                    return (null == diffPrice || "".equals(diffPrice)) ? "0" : diffPrice;
                }

                public void setDiffPrice(String diffPrice) {
                    this.diffPrice = diffPrice;
                }

                public String getPresentationDetail() {
                    return presentationDetail;
                }

                public void setPresentationDetail(String presentationDetail) {
                    this.presentationDetail = presentationDetail;
                }

                public List<LimitRuleListBean> getLimitRuleList() {
                    return limitRuleList;
                }

                public void setLimitRuleList(List<LimitRuleListBean> limitRuleList) {
                    this.limitRuleList = limitRuleList;
                }
            }
        }
    }
}